Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

[Help] HTML `Size=` Argument Does Not Work On Character Sheet?

So me and my friend are working on trying to get a character sheet for our war game but ran into a bit of a wall. We are still new to the API so bear with us.   When we tested this in our visualizer this is what we got and we were quite happy with it. However... When we ran it through the API and made a new character sheet, it turned out like this! Simply said we could make do with this but it would be way more hassle than we want to work with. Is there a fix or work around for this? Thanks in advance!
1560851866
GiGs
Pro
Sheet Author
API Scripter
You can use style="width:70px"  or better, give it a class, like class="sheet-armour" and then in the CSS tab, set up  input.sheet-armour {     width: 70px; } Note: to avoid issues, always start class names with sheet-  (you can leave this off in the html, but must add it in the css tab).
1560867075
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Yep, the size html attribute has long been deprecated; since the advent of css probably. The sheet sanitizer probably doesn't have it whitelisted.
GiGs said: You can use style="width:70px"  or better, give it a class, like class="sheet-armour" and then in the CSS tab Scott C. said: Yep, the size html attribute has long been deprecated; since the advent of css probably. The sheet sanitizer probably doesn't have it whitelisted. Wow! Thanks guys! Had no idea, this is my first project in this API and HTML so the help is greatly appreciated!
1560881026

Edited 1560881110
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Happy to help, and welcome to Roll20 custom sheets. Also, as a note, you'll probably want to post future character sheet questions in the character sheet forum. The API forum is generally used for questions on API scripts which are a separate pro perk and not related to character sheets. There are some small differences between the javascript that is used in character sheet sheetworkers and that used in API scripts. There is also different html available to the two environments. Between all these differences, you can get some erroneous advice on what is possible/best practice asking sheet questions in the API section (or vice versa). EDIT: edited for typos
Scott C. said: Also, as a note, you'll probably want to post future character sheet questions in the character sheet forum. The API forum is generally used for questions on API scripts which are a separate pro perk and not related to character sheets. Oh! Whoops! Sorry about that, thanks again!